package com.learn.flyweight.base;

import com.learn.flyweight.Color;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: Chessman </p>
 *
 * 围棋棋子类：抽象享元类
 */
@Slf4j
public abstract class Chessman {

    abstract Color getColor();

    public void display(){
        log.info("棋子颜色为：" + this.getColor().getDetail());
    }
}
